<?php

namespace app\validate\user;

use think\Validate;

class Index extends Validate
{
    protected $rule = [
        'account' => 'require|alpha|length:5,15',
        'password' => 'require|alphaNum|length:5,20',
        'captcha' => 'alpha|length:5'
    ];

    protected $scene = [
        'login' => ['account', 'password']
    ];

    protected $field = [
        'account' => '账户',
        'password' => '密码'
    ];
}